import Vue from 'vue'
import App from './App'
import { myRequest } from './utils/api.js'

Vue.prototype.$myRequest = myRequest
// 全局调用过滤器
Vue.filter('formatDate',(date) => {
	const nDate = new Date(date)
	const y = nDate.getFullYear()
	const m = nDate.getMonth().toString().padStart(2,0)
	const d = nDate.getDay().toString().padStart(2,0)
	console.log(y,m,d)
	return y +'-' + m +'-' + d
})

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
